<?php
namespace Admin\Controller;
use Tool\AdminController;

class IndexController extends AdminController {
    function index(){
    	include ('top.php');
    	$q1 = D('Question')->where('type=1')->count();
    	$this->assign('q1',$q1);
    	
    	$q2 = D('Question')->where('type=2')->count();
    	$this->assign('q2',$q2);
    	
    	$q3 = D('Question')->where('type=3')->count();
    	$this->assign('q3',$q3);
    	 
    	$q4 = D('Question')->where('type=4')->count();
    	$this->assign('q4',$q4);
    	
    	$q5 = D('Question')->where('type=5')->count();
    	$this->assign('q5',$q5);
    	 
    	$q6 = D('Question')->where('type=6')->count();
    	$this->assign('q6',$q6);
    	$this->display();
    }
}